#define  _CRT_SECURE_NO_WARNINGS 1
#include "List.h"

TestList1()
{
	LTNode* plist = LTInit();

	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);

	LTPushFront(plist, -1);
	LTPushFront(plist, -2);
	LTPushFront(plist, -3);
	LTPushFront(plist, -4);

	LTPrint(plist);
}

TestList2()
{
	LTNode* plist = LTInit();

	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);

	LTPrint(plist);

	LTNode* pos = LTFind(plist, 3);
	LTInsert(pos, 114514);
	LTPrint(plist);

}

TestList3()
{
	LTNode* plist = LTInit();

	LTPushBack(plist,1);
	LTPushBack(plist,2);
	LTPushBack(plist,3);
	LTPushBack(plist,4);

	LTPushFront(plist,  0);
	LTPushFront(plist, -1);
	LTPushFront(plist, -2);
	LTPushFront(plist, -3);
	LTPushFront(plist, -4);

	LTPrint(plist);
	LTDestroy(plist);

}

int main()
{
	//TestList1();
	//TestList2();
	TestList3();
	return 0;
}